package com.lagou.biz.pojo;

import lombok.Data;

/**
 * desc:
 *
 * @author tengfei wang
 * @version 1.0
 * @date Created in 8/9/2020
 */
@Data
public class Result {

    private Integer code;

    private String message;

    @Override
    public String toString() {
        return "{" +
                "\"code\": " + code +
                ", \"message\": \"" + message +
                "\"}";
    }

    public static void main(String[] args) {
        Result result = new Result();
        result.setCode(200);
        result.setMessage("success");
        System.out.println(result.toString());
    }
}
